﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using FlatOut.Dal.Context;
using FlatOut.Dal.Domain;

namespace FlatOut.Services
{
    public class UserService
    {
        public static List<User> GetUsers()
        {
            List<User> users = null;

            // Find groups in base
            using (var context = new FlatOutContext())
            {
                users = context.Users.OrderBy(u => u.Nickname).ToList();
            }

            return users;
        }

        public static bool ValidateUser(string username, string password)
        {
            return username == "Dryadim";
        }
    }
}